import request from '@/utils/request'
// 查询设备分组告警手机设置列表
export function listDeviceGroupAlarmPhone(query) {
  return request({
    url: '/device/deviceGroupAlarmPhone/page',
    method: 'get',
    params: query
  })
}

// 查询设备分组告警手机设置详细
export function getDeviceGroupAlarmPhone(id) {
  return request({
    url: '/device/deviceGroupAlarmPhone/info?id='+id,
    method: 'get'
  })
}

// 新增设备分组告警手机设置
export function addDeviceGroupAlarmPhone(data) {
  return request({
    url: '/device/deviceGroupAlarmPhone/save',
    method: 'post',
    data: data
  })
}

// 修改设备分组告警手机设置
export function editDeviceGroupAlarmPhone(data) {
  return request({
    url: '/device/deviceGroupAlarmPhone/edit',
    method: 'post',
    data: data
  })
}

// 删除设备分组告警手机设置
export function delDeviceGroupAlarmPhone(id) {
  return request({
    url: '/device/deviceGroupAlarmPhone/del?id='+id,
    method: 'delete'
  })
}
